{% extends 'pase.html' %}
{% block class2 %}
    class="active"
{% endblock %}
{% block table%}
     <button><a href="{% url 'add_user' %}">添加</a></button>
                <table class="table table-striped">
                    <tr>
                        <th>编号</th>
                        <th>用户名</th>
                        <th>姓名</th>
                        <th>手机号</th>
                        <th >操作</th>
                        <th >操作</th>
                    </tr>
                    {% for i in user_all %}

                        <tr>
                            <p>
                            <td>{{ forloop.counter }}</td>
                            <td>{{ i.u_name }}</td>
                            <td>{{ i.name }}</td>
                            <td>{{ i.phone }}</td>
                            <td><button><a href="{% url 'exit_user' i.pk  %}">编辑</a></button></td>
                            <td><button style="color: red" type="button" value="{{ i.pk }}" class="button1" src="/del_user/">删除
                                </button></td>
                            </p>
                        </tr>
                    {% endfor %}
                </table>
{% endblock %}

{% block script %}
    {% include 'nva.html' %}
{% endblock %}
